﻿// =================================================================
//  Copyright (c) "David R. Guindo", Software architect
//  
//  This code is released under the terms of the Apache License, Version 2.0,
//  http://www.apache.org/licenses/LICENSE-2.0
//  
//  THIS CODE AND INFORMATION ARE PROVIDED WITHOUT WARRANTIES,
//  WITHOUT LIMITING COMMERCIAL OR PARTICULAR USE.
// =================================================================

namespace ScreenManager.Configuration
{
   using System;
   using System.Configuration;

   //<ScreenGroup Group="Group1" Screen="Main" OnNoScreenAvailable="None" />
   public class ContainerView : ConfigurationElement
   {
      [ConfigurationProperty("containerName", DefaultValue = "name", IsRequired = true)]
      [StringValidator(MinLength = 1)]
      public String ContainerName
      {
         get
         {
            return (String)this["containerName"];
         }
         set
         {
            this["containerName"] = value;
         }
      }

      [ConfigurationProperty("name", DefaultValue = "All", IsRequired = true, IsKey = true)]
      [StringValidator(MinLength = 1)]
      public String Name
      {
         get
         {
            return (String)this["name"];
         }
         set
         {
            this["name"] = value;
         }
      }
   }
}